// import TabsView from '@/layouts/tabs/TabsView'
// import BlankView from '@/layouts/BlankView'
// import PageView from '@/layouts/PageView'
const TabsView = () => import('@/layouts/tabs/TabsView')
const BlankView = () => import('@/layouts/BlankView')
// 路由配置
const options = {
  routes: [
    {
      path: '/login',
      name: '登录页',
      component: () => import(/* webpackChunkName: 'login' */ '@/pages/login')
    },
    {
      path: '*',
      name: '404',
      component: () => import(/* webpackChunkName: 'login' */ '@/pages/exception/404'),
    },
    {
      path: '/403',
      name: '403',
      component: () => import(/* webpackChunkName: 'login' */ '@/pages/exception/403'),
    },
    {
      path: 'Agreement',
      name: '协议',
      component: () => import(/* webpackChunkName: 'login' */ '@/pages/Agreement')
    },
    {
      path: '/',
      name: '诊断总览',
      component: TabsView,
      redirect: '/login',
      children: [
        {
          path: 'home',
          name: '诊断总览',
          meta: {
          },
          component: BlankView,
          children: [
              {
                  path: '/',
                  name: '诊断总览',
                  meta: {
                      invisible: true
                  },
                  component: () => import('@/pages/home')
              },
              {
                path: 'diagnosis',
                name: '诊断详情',
                meta: {
                  invisible: true
                },
                component: () => import('@/pages/home/diagnosis.vue'),
              },
              {
                path: '3D',
                name: '3D',
                meta: {
                  invisible: true
                },
                component: () => import('@/pages/home/3D.vue'),
              }
          ]
          // 
        },
        {
          path: 'earlyWarning',
          name: '预警记录',
          meta: {
          },
          component: BlankView,
          children: [
              {
                path: '/',
                name: '预警记录',
                meta: {
                  invisible: true
                },
                component: () => import('@/pages/EarlyWarning/index.vue'),
              },{
                path: 'details',
                name: '预警详情',
                meta: {
                  invisible: true
                },
                component: () => import('@/pages/EarlyWarning/details.vue'),
              }
            ]
        },
        {
          path: 'maintenance',
          name: '运维记录',
          meta: {
          },
          component: BlankView,
          children: [
              {
                path: '/',
                name: '运维记录',
                meta: {
                  invisible: true
                },
                component: () => import('@/pages/Maintenance/index.vue'),
              }
            ]
        },
        {
          path: 'realTime',
          name: '实时数据',
          meta: {
          },
          component: BlankView,
          children: [
              {
                path: '/',
                name: '实时数据',
                meta: {
                  invisible: true
                },
                component: () => import('@/pages/RealTime/index.vue'),
              }
            ]
        },
        {
          path: 'analysis',
          name: '分析记录',
          meta: {
          },
          component: BlankView,
          children: [{
            path: '/',
            name: '分析记录',
            meta: {
              invisible: true
            },
            component: () => import('@/pages/Analysis/index.vue'),
          }]
        },
        {
          path: 'user',
          name: '账户服务',
          meta: {
          },
          component: BlankView,
          children: [
              {
                path: '/',
                name: '账户服务',
                meta: {
                  invisible: true
                },
                component: () => import('@/pages/User/index.vue'),
              },
              {
                path: 'userInfo',
                name: '用户信息',
                meta: {
                  invisible: true
                },
                component: () => import('@/pages/User/userInfo.vue'),
              },
              {
                path: 'roleInfo',
                name: '角色信息',
                meta: {
                  invisible: true
                },
                component: () => import('@/pages/User/roleInfo.vue'),
              },
              {
                path: 'stationsInfo',
                name: '电站信息',
                meta: {
                  invisible: true
                },
                component: () => import('@/pages/User/stationsInfo.vue'),
              }
            ]
        },
        {
          path: 'exception',
          name: '异常页',
          meta: {
            icon: 'warning',
            invisible: true
          },
          component: BlankView,
          children: [
            {
              path: '404',
              name: 'Exp404',
              component: () => import('@/pages/exception/404')
            },
            {
              path: '403',
              name: 'Exp403',
              component: () => import('@/pages/exception/403')
            },
            {
              path: '500',
              name: 'Exp500',
              component: () => import('@/pages/exception/500')
            }
          ]
        }
      ]
    }
  ]
}

export default options
